package com.youzhi.backend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.FieldNameConstants;

/**
 * <p>
 * 系统操作日志
 * </p>
 *
 * @author xumeng
 * @since 2022-12-10
 */
@FieldNameConstants
@Data
@ApiModel(value = "OperateLog对象", description = "系统操作日志")
public class OperateLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("操作类型 1登陆 2查看 3编辑 4删除")
    private Integer operateType;

    @ApiModelProperty("描述")
    private String description;

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("用户名称")
    private String userName;

    @ApiModelProperty("客户端ip地址")
    private String clientIp;

    @ApiModelProperty("操作的数据id")
    private String dataId;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;


}
